import { getSessionUser } from '@/utils';

export default function useAdminPermission() {
  const { roles } = getSessionUser();
  const isAdmin = roles?.find(i => i?.roleCode === 'role.rock.dept.admin');

  return isAdmin;
}